#include "StdAfx.h"
#include "SgComposite.h"
#include <list>
using namespace std;

CSgComposite::CSgComposite(void)
{
}

CSgComposite::~CSgComposite(void)
{
}
void CSgComposite::Render()
{
	glPushMatrix();
	for(list< CSgPtr<CSgObject> >::iterator c=m_children.begin();c != m_children.end(); c++)
		(*c)->Render();
	glPopMatrix();
}